<?php
include_once("functions/db_manipulate.php");
?>
    <meta charset="UTF-8">

<?php

connectDB();
startTransaction();

$deleteResultSet = mysql_query("DELETE FROM topicmessages WHERE id = '" . $_GET['cid'] . "'") or die(mysql_error());

if ($deleteResultSet) {
    commitTransaction();
} else {
    rollbackTransaction();
}

redirect($_SERVER['HTTP_REFERER']);